[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: system crash when much disk io



Hi,

Neal and Phil, thanks a lot for your prompt reply!

On Sat, Nov 24, 2001 at 04:39:39PM +0100, Neal H Walfield wrote:
> > Running dselect or apt-get very often gets my hurd box on it's knees.
> > When it's 'Reading Package Lists...' , the system hangs, after giving:
> >
> > ext2fs.static: ../../ext2fs/pager.c:396: file_pager_write_page:
> > Assertion `block' failed.
> 
> This is a bug.  I have attached a patch.

Thanks a lot!

> Could you give it a try

I did:

joostvb@stegun-hurd /usr/local/src/hurd$ apt-get source hurd
joostvb@stegun-hurd /usr/local/src/hurd/hurd-20011105/ext2fs$ patch -p0 < pager.c.patch
joostvb@stegun-hurd /usr/local/src/hurd/hurd-20011105$ ./debian/rules binary

broke on:

make[2]: Entering directory `/local/src/hurd/hurd-20011105/build/libports'
gcc -O -E -x c  -I. -I../../libports -I.. -I../.. -I../../include -D_GNU_SOURCE -D_IO_MTSAFE_IO  -DHAVE_GETGROUPLIST=1    -DSERVERPREFIX=S_ ../../hurd/interrupt.defs -o interrupt.sdefsi
mig -cc cat - /dev/null -prefix ports_  \
    -sheader interrupt_S.h -server interruptServer.c \
    -user /dev/null -header /dev/null < interrupt.sdefsi
cat: invalid option -- d
Try `cat --help' for more information.
mig: fatal: no SubSystem declaration
make[2]: *** [interruptServer.c] Error 1

I did an evil hack on /bin/mig: I changed

 cppflags=-undef

to

 cppflags=

.  This resulted in a successful build (took quite long, at least 6
hours... (guess i should not be running the Hurd on a 187 MHz Pentium
MMX with 80 MB ram...)), and I did

root@stegun-hurd /usr/local/src/hurd/hurd-20011105# dpkg -i ../hurd_20011105-1_hurd-i386.deb

> and
> see if the bug shows up again (I have never actually seen it on my
> system)?

Indeed, ext2fs.static problems look like solved now :)

> > As a workaround, I tried importing /var/lib/apt/ and /var/lib/dpkg via
> > nfs.  However, this gives different problems: apt complains about
> >
> >  E: Couldn't make mmap of 6291457 bytes - mmap (1073741869 Operation not supported)
> >  E: The package lists or status file could not be parsed or opened.
> 
> The nfs client does not support mmap.  I referrer you to:
> http://mail.gnu.org/pipermail/bug-hurd/2001-October/005651.html

Hmm, guess I'll apply that patch later.

On Sun, Nov 25, 2001 at 08:25:07AM +1300, Philip Charles wrote:
>
> Would you please try,
>·
> rm -f /var/cache/apt/*.bin
> followed by
> apt-get update
>·
> every time before running apt-get install foo, and get back to us.
>·

Thanks!  This indeed helps.

BTW, if anybody would like to take a look at the result: The box will be
shown on Linux Kongress, this week in Enschede, The Netherlands.

Bye,

Joost

-- 
When someone once asked Diogenes why he often laughed by himself,
he said, "For that very reason."                  http://mdcc.cx/

Attachment: pgpV0pSzth_Ql.pgp
Description: PGP signature


Reply to: